package com.welike.shibo.eneity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * Created by fangyu on 2019-08-18.
 */
@Data
@TableName(value = "audio")
public class Audio {
    /**
     * 音频id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 音频名
     */
    @TableField(value = "name")
    private String name;

    /**
     * url
     */
    @TableField(value = "audio_url")
    private String audioUrl;

    /**
     * url
     */
    @TableField(value = "duration")
    private Integer duration;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_AUDIO_URL = "audio_url";

    public static final String COL_DURATION = "duration";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";
}